package cn.stylefeng.guns.animals.modular.system.model;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author stylefeng
 * @since 2020-09-15
 */
@TableName("sys_product_jpg")
public class ProductJpg extends Model<ProductJpg> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    @TableField("product_id")
    private Integer productId;
    @TableField("product_jpg_addr")
    private String productJpgAddr;

    /**
     * 创建时间
     */

    private Date createtime;

    /**
     * 更新时间
     */
    private Date updatetime;

    public Date getUpdatetime() {
        return updatetime;
    }

    public void setUpdatetime(Date updatetime) {
        this.updatetime = updatetime;
    }

    public Date getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

    @TableField(exist = false)
    private String spmc;

    public String getSpmc() {
        return spmc;
    }

    public void setSpmc(String spmc) {
        this.spmc = spmc;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getProductId() {
        return productId;
    }

    public void setProductId(Integer productId) {
        this.productId = productId;
    }

    public String getProductJpgAddr() {
        return productJpgAddr;
    }

    public void setProductJpgAddr(String productJpgAddr) {
        this.productJpgAddr = productJpgAddr;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "ProductJpg{" +
        ", id=" + id +
        ", productId=" + productId +
        ", productJpgAddr=" + productJpgAddr +
        "}";
    }
}
